// 全局变量
:root {
  --primary-gradient: linear-gradient(45deg, #409EFF, #36cfc9);
  --hover-gradient: linear-gradient(45deg, #36cfc9, #409EFF);
  --input-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  --button-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
  --hover-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
}

// 共享输入框样式
.auth-input {
  ::v-deep .el-input__inner {
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    padding: 0 15px 0 45px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--input-shadow);

    &:hover {
      background: #fff;
      border-color: rgba(64, 158, 255, 0.3);
    }

    &:focus {
      background: #fff;
      border-color: #409EFF;
      box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
      transform: translateY(-1px);
    }
  }

  ::v-deep .el-input__prefix {
    left: 15px;
    color: #909399;
  }

  ::v-deep .el-input__suffix {
    right: 15px;
    cursor: pointer;
    color: #909399;
    
    &:hover {
      color: #409EFF;
    }
  }
}

// 共享按钮样式
.auth-button {
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: 12px;
  border: none;
  background: var(--primary-gradient);
  box-shadow: var(--button-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  &:hover {
    background: var(--hover-gradient);
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
  }

  &:active {
    transform: translateY(0);
  }

  &.is-loading {
    background: var(--primary-gradient) !important;
    opacity: 0.8;
  }
}

// 标签切换样式
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  position: relative;

  .tab-item {
    font-size: 20px;
    color: #909399;
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background: var(--primary-gradient);
      transform: scaleX(0);
      transition: transform 0.3s ease;
      border-radius: 3px;
    }

    &.active {
      color: #409EFF;
      font-weight: 600;

      &::after {
        transform: scaleX(1);
      }
    }

    &:hover:not(.active) {
      color: #409EFF;
      
      &::after {
        transform: scaleX(0.5);
      }
    }
  }
}

// 验证码按钮样式
.verification-button {
  min-width: 120px;
  height: 48px;
  padding: 0 15px;
  font-size: 14px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid #409EFF;
  color: #409EFF;
  transition: all 0.3s ease;

  &:not(:disabled):hover {
    background: #409EFF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(64, 158, 255, 0.2);
  }

  &:disabled {
    border-color: #909399;
    color: #909399;
    cursor: not-allowed;
  }
}

// 容器过渡动画
.auth-container-enter-active,
.auth-container-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container-enter,
.auth-container-leave-to {
  opacity: 0;
  transform: scale(0.95);
} 